package com.heroCW.bodhiAttic.resultUtil;

public class ResultCode {

    // 数据库查询结果码
    public static final Integer SAVE_OK = 20011;
    public static final Integer SAVE_ERR = 20010;

    public static final Integer DELETE_OK = 20021;
    public static final Integer DELETE_ERR = 20020;

    public static final Integer UPDATE_OK = 20031;
    public static final Integer UPDATE_ERR = 20030;

    public static final Integer GET_OK = 20041;
    public static final Integer GET_ERR = 20040;

    // 登录管理结果码
    public static final Integer USER_NOT_LOGIN_ERR = 10000;
    public static final Integer USER_LOGIN_SUCCESS = 10011;
    public static final Integer USER_LOGIN_ERROR = 10010;
    public static final Integer USER_LOGOUT_SUCCESS = 10021;
    public static final Integer USER_LOGOUT_ERROR = 10020;
    public static final Integer SEND_MESSAGE_SUCCESS = 10031;
    public static final Integer SEND_MESSAGE_ERROR = 10030;
    public static final Integer SEND_MESSAGE_OVERDUE = 10039;

    // 系统管理结果码
    public static final Integer SYSTEM_TIMEOUT_ERR = 50010;
    public static final Integer SYSTEM_SQL_ERR = 50020;
    public static final Integer SYSTEM_UN_KNOW_ERR = 59990;

    // 业务管理结果码
    public static final Integer CUSTOM_ERR = 69990;
    public static final Integer CUSTOM_CANNOT_SAVE_ERR = 60010;
    public static final Integer CUSTOM_CANNOT_DELETE_ERR = 60020;
    public static final Integer CUSTOM_CANNOT_UPDATE_ERR = 60030;
    public static final Integer CUSTOM_CANNOT_QUERY_ERR = 60040;
    public static final Integer CUSTOM_DATA_ERR = 60050;

    // 图片上传结果码
    public static final Integer UPLOAD_OK = 30001;
    public static final Integer UPLOAD_ERR = 30000;






}
